<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport"
        content="width=device-width, initial-scale=1">
  <title>闪付充值</title>

  <!-- Set render engine for 360 browser -->
  <meta name="renderer" content="webkit">

  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp"/>
  <link rel="icon" href="favicon.ico" />

  <script src="../public/all/js/jquery-3.1.1.min.js"></script>
  <script src="../public/all/js/amazeui.min.js"></script>
  <script src="../public/all/js/jquery.cookie.js"></script>
  <script src="js/login.min.js"></script>

  <!-- debug only -->
  <script src="../public/all/js/jquery.nivo.slider.js"></script>
  <script src="../public/all/layer/layer.js"></script>

  <script src="../public/all/js/context.js"></script>
  <script src="../public/all/js/util.js"></script>
  <script src="../public/all/js/cmd.js"></script>
  <script src="js/app.js"></script>
  <script src="../public/all/js/classify.js"></script>
  <script src="../public/all/js/page.js"></script>
  <script src="../public/all/js/rule/rule.js"></script>

  <script src="../public/all/js/me.js"></script>
  <!-- debug only end -->
</head>
<body>
    数据提交中，请稍后……
    <script type="text/javascript">
        var key = urlInfo.params.key, 
            amount = urlInfo.params.amount, 
            payType = urlInfo.params.payType || '',
            url = decodeURIComponent(urlInfo.params.payUrl) + "/sf.html";
        var channel3 = 'bank';
        if (payType == '758') channel3 = 'alipay';
        else if (payType == '57') channel3 = 'wechat';
        else if (payType == '77') channel3 = 'qq';
        else payType == null;

        CMD.pay_sslsf_create(key, amount * 100, payType, channel3, function(r) {
            var sf = r;
            sf.ProductName = '';
            sf.Amount = 1;
            sf.Username = '';
            sf.Signature = sf.Md5Sign;
            var data = {};
            for (var k in sf) {
                if (k == 'Md5Sign') continue;
                data[k] = sf[k];	
            }

            window.location.href = url + "?info=" + encodeURIComponent(JSON.stringify(data));
        });
    </script>
</body>
</html>
